package com.cn.hu.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ContractPlanRef entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "contract_plan_ref", catalog = "huarui")
public class ContractPlanRef implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer contractId;
	private Integer planId;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private Integer status;
	private String bak;

	// Constructors

	/** default constructor */
	public ContractPlanRef() {
	}

	/** minimal constructor */
	public ContractPlanRef(Timestamp createDate, Timestamp modifyDate) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
	}

	/** full constructor */
	public ContractPlanRef(Integer contractId, Integer planId,
			Timestamp createDate, Timestamp modifyDate, Integer status,
			String bak) {
		this.contractId = contractId;
		this.planId = planId;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.status = status;
		this.bak = bak;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "contract_id")
	public Integer getContractId() {
		return this.contractId;
	}

	public void setContractId(Integer contractId) {
		this.contractId = contractId;
	}

	@Column(name = "plan_id")
	public Integer getPlanId() {
		return this.planId;
	}

	public void setPlanId(Integer planId) {
		this.planId = planId;
	}

	@Column(name = "create_date", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	@Column(name = "modify_date", nullable = false, length = 19)
	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "bak", length = 100)
	public String getBak() {
		return this.bak;
	}

	public void setBak(String bak) {
		this.bak = bak;
	}

}